<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>类别列表</title>
<!--公共样式开始-->
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/Css/reset.css">
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/Css/common.css">
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/Plugins/FontAwesome/css/font-awesome.min.css">
<!--公共样式结束-->
<!--页面样式开始-->
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/Css/ztree.css">
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/Css/module_form.css">
<!--页面样式结束-->
<!--公共JS开始-->
<script src="{$NOW_THEME_URL}/Assets/Js/jquery.min.js"></script>
<script src="{$NOW_THEME_URL}/Assets/Js/jquery.timer.js"></script>
<script src="{$NOW_THEME_URL}/Assets/Js/common.js"></script>
<!--公共JS结束-->
<!--ZTree开始-->
<link rel="stylesheet" href="{$NOW_THEME_URL}/Assets/Plugins/ZTree/css/zTreeStyle/zTreeStyle.css" type="text/css">
<include file="treeMenu" />
<script type="text/javascript" src="{$NOW_THEME_URL}/Assets/Plugins/ZTree/js/jquery.ztree.core-3.5.js"></script>
<script type="text/javascript" src="{$NOW_THEME_URL}/Assets/Plugins/ZTree/js/jquery.ztree.excheck-3.5.js"></script>
<script type="text/javascript" src="{$NOW_THEME_URL}/Assets/Plugins/ZTree/js/jquery.ztree.exhide-3.5.js"></script>
<!--ztree结束-->
<!--数据列表插件开始-->
<!-- <link href="{$NOW_THEME_URL}/Assets/Plugins/ContextMenu/src/jquery.contextMenu.css" rel="stylesheet" type="text/css" />
<link href="{$NOW_THEME_URL}/Assets/Plugins/Etgrid/Css/etgrid.css" rel="stylesheet" type="text/css">
<script src="{$NOW_THEME_URL}/Assets/Plugins/ContextMenu/src/jquery.ui.position.js"></script>
<script src="{$NOW_THEME_URL}/Assets/Plugins/ContextMenu/src/jquery.contextMenu.js"></script>
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/Plugins/Etgrid/Css/etgrid.css">
<script src="{$NOW_THEME_URL}/Assets/Plugins/Etgrid/Js/etgrid.js"></script> -->
<!--数据列表插件结束-->
<style type="text/css">
	body {
		overflow:hidden;
	}
	.table_box {
	}
</style>
</head>

<body>
<div class="quanxian clearfix">
		<div class="quanxian_left">
			<div class="tb_title">基本信息</div>
			<form action="" method="post" id="memberAdd_form">
			<input type="hidden" name="id" id="dataid" value="{$detail.id}" />
			<table border="0" cellpadding="0" cellspacing="0" class="module_form" >
			<input type="hidden" id="id"  value="{$detail.id}" type="text" />
				<tr>
					<td>上级分类：</td>
					<td>
						<eq name="detail.pid" value="0">
							暂无上级分类
						<else />
							{$ftitle}
						</eq>
					</td>
				</tr>
				<tr>
					<td>名称：</td>
					<td><input name="title" value="{$detail.title}" id="title" type="text" class="form_ele_text width_200"></td>
				</tr>
				<tr>
					<td>关键字：</td>
					<td><input name="keywords" id="keywords"  value="{$detail.keywords}" type="text" class="form_ele_text width_200"></td>
				</tr>
				<tr>
					<td>备注：</td>
					<td>
						<textarea class="width_200" name="description" id="description">{$detail.description}</textarea>
					</td>
				</tr>
			</table>
			</form>
		</div>
		<div class="quanxian_right">
			<div class="tb_title">类别菜单</div>
			<ul id="treeDemo" class="ztree"></ul>
		</div>
	</div>
	<div class="page_footer pdtd10">
		<input type="button" name="submit" value="提  交"  class="form_ele_submit"/>
		<input type="reset"  name="reset"  value="取  消"  class="form_ele_reset"/>
	</div>
	
	<script type="text/javascript">
	//弹出窗口全局变量
	var api = frameElement.api, W = api.opener;
	
	$(function(){
		
		//重置
		$('.form_ele_reset').on('click',function(){
			frameApi.close(); //关闭当前窗口
		});
		
		//提交
		$('.form_ele_submit').on('click',function(){
			
			var postData = {};
			
			postData.id          = $("#id").val();
			postData.title       = $("#title").val();
			postData.keywords    = $("#keywords").val();
			postData.description = $("#description").val();
			
			$.post("__URL__/index",postData,function(d){
				
				windowApi.lhgdialog.alert('类别修改成功！');
				var obj = windowApi.lhgdialog.list['Column_index'];
				obj.reload(obj);
			}
					
			);
		});
	});
</script>
</html>
